package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.Foot;
import com.xca.znb.entity.Goods;
import com.xca.znb.model.imodel.IFoot;

import java.util.List;

public class FootImpl implements IFoot {
    private UserDAO userDAO ;
    public FootImpl(Context context){
        userDAO = new UserDAO(context);
    }

    @Override
    public Goods getGoodsById(int id) {
        return userDAO.getGoodsById(id);
    }

    @Override
    public List<Foot> getFoots(String user) {
        return userDAO.getFoots(user);
    }

    @Override
    public void addOrUpdateFoot(int goodsId, String user, String time) {
        userDAO.addOrUpdateFoot(goodsId, user, time);
    }
}
